package com.ys.controller.web.storage;

import com.ys.config.MenuId;
import com.ys.dto.SubGridConfigDto;
import com.ys.entity.storage.TccFbaBoxUp;
import com.ys.entity.storage.TccFbaBoxUpInfo;
import com.ys.entity.sys.TbStaticConfig;
import com.ys.enume.storage.TccFbaBoxUpEnum;
import com.ys.enume.storage.TccLogisticsComprehensiveEnum;
import com.ys.service.storage.TccFbaBoxUpService;
import com.ys.service.storage.TccLogisticsComprehensiveOrderService;
import com.ys.service.sys.CommonApiService;
import com.ys.vo.W;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.Map;

/**
 * 物流订单
 */
@Controller
@RequestMapping("/web/storage/tccLogisticsComprehensiveOrder")
public class WebTccLogisticsComprehensiveOrderController {
	private static final Logger logger = LoggerFactory.getLogger(WebTccLogisticsComprehensiveOrderController.class);


	@Autowired
	private CommonApiService<TccFbaBoxUp> commonApiService;

	@Autowired
	private TccLogisticsComprehensiveOrderService tccLogisticsComprehensiveOrderService;

	private Long menuId = MenuId.TCC_LogisticsComprehensive_Order;

	//C88文件批量导入
	@GetMapping("/importFileC88Batch")
	public String importFileC88Batch(Model model,String fbaNo,String tableId,String isByFbaNoImport,String isEdit){
		model.addAttribute("fbaNo", fbaNo);
		model.addAttribute("tableId", tableId);
		model.addAttribute("isByFbaNoImport", isByFbaNoImport);
		model.addAttribute("isEdit", isEdit);

//		int fbaNoLength = 12;
//		TbStaticConfig tbStaticConfig = new TbStaticConfig().setKeyOne("TCC_LogisticsComprehensive").setKeyTwo("FbaNo-length").queryFirst();
//		if(tbStaticConfig!=null && tbStaticConfig.getId()!=null){
//			fbaNoLength = Integer.getInteger(tbStaticConfig.getName());
//		}
//		model.addAttribute("fbaNoLength", fbaNoLength);


		return "storage/tccLogisticsComprehensive/importFileC88Batch";
	}








}






